﻿#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <sqlite3.h>
#include <stdlib.h>
#include <string.h>

#include "utils.h"

#ifndef false
 #define false 0
#endif
#ifndef true
 #define true 1
#endif

int sqliteDB_open();

int sqliteDB_close();

int sqliteDB_opt_delete(const char *name);

int sqliteDB_opt_delete_by_id(const char *id);

int sqliteDB_opt_add(const char *name,const char *id,double price);

int sqliteDB_opt_select_all();

int sqliteDB_opt_select(const char *name);

int sqliteDB_opt_select_by_id(const char *id, struct Commodity *comm);

#ifdef __cplusplus
}
#endif
